﻿using Factory.Framework;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;

namespace FactoryFrameworkTest
{
    
    
    /// <summary>
    ///This is a test class for EmailFactoryTest and is intended
    ///to contain all EmailFactoryTest Unit Tests
    ///</summary>
    [TestClass()]
    public class EmailFactoryTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for SendMail
        ///</summary>
        [TestMethod()]
        public void SendMailTest1()
        {
            string emailFactoryConfigFilePath = string.Empty; // TODO: Initialize to an appropriate value
            EmailFactory target = new EmailFactory(emailFactoryConfigFilePath); // TODO: Initialize to an appropriate value
            string[] listOfToAddress = null; // TODO: Initialize to an appropriate value
            string emailTemplateName = string.Empty; // TODO: Initialize to an appropriate value
            Dictionary<string, string> templateKeyValues = null; // TODO: Initialize to an appropriate value
            string[] attachemtnFilesPath = null; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.SendMail(listOfToAddress, emailTemplateName, templateKeyValues, attachemtnFilesPath);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SendMail
        ///</summary>
        [TestMethod()]
        public void SendMailTest()
        {
            string emailFactoryConfigFilePath = string.Empty; // TODO: Initialize to an appropriate value
            EmailFactory target = new EmailFactory(emailFactoryConfigFilePath); // TODO: Initialize to an appropriate value
            string[] listOfToAddress = null; // TODO: Initialize to an appropriate value
            string emailSubject = string.Empty; // TODO: Initialize to an appropriate value
            string emailText = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.SendMail(listOfToAddress, emailSubject, emailText);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SaveEmail
        ///</summary>
        [TestMethod()]
        [DeploymentItem("FactoryFramework.dll")]
        public void SaveEmailTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            EmailFactory_Accessor target = new EmailFactory_Accessor(param0); // TODO: Initialize to an appropriate value
            string emailContent = string.Empty; // TODO: Initialize to an appropriate value
            target.SaveEmail(emailContent);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for LoadEmailSettings
        ///</summary>
        [TestMethod()]
        [DeploymentItem("FactoryFramework.dll")]
        public void LoadEmailSettingsTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            EmailFactory_Accessor target = new EmailFactory_Accessor(param0); // TODO: Initialize to an appropriate value
            target.LoadEmailSettings();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for EmailFactory Constructor
        ///</summary>
        [TestMethod()]
        public void EmailFactoryConstructorTest()
        {
            string emailFactoryConfigFilePath = string.Empty; // TODO: Initialize to an appropriate value
            EmailFactory target = new EmailFactory(emailFactoryConfigFilePath);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }
    }
}
